﻿using System;
using System.Collections.Generic;
using System.Text;
using OpenAuth.Repository;
using OpenAuth.Repository.Domain;

using System.Data.SqlClient;
using OpenAuth.Repository.Interface;

namespace OpenAuth.App
{
    public class CGGYW005App:ApiBaseApp<CGGYW005>
    {
        /// <summary>
        /// 医生信息查询App
        /// </summary>
        /// <param name="repository"></param>
        public CGGYW005App(IApiRepository<CGGYW005> repository):base(repository)
        {
        }
       /// <summary>
       /// 医生信息查询
       /// </summary>
       /// <param name="ysdm">医生代码</param>
       /// <returns></returns>
        public IEnumerable<CGGYW005> QueryCGGYW005(string ysdm)
        {
            List<SqlParameter> param = new List<SqlParameter>();
            param.Add(new SqlParameter("@Ysdm", ysdm));
            param.Add(new SqlParameter("@Czyh", "hf001"));
            var result = Query<CGGYW005>("exec usp_web_webtrans_CGGYW005 @ysdm=@Ysdm,@czyh=@Czyh", param);
            return result;
        }
    }
}
